package com.zjk.storage.config;


import com.zjk.storage.core.provider.amazonS3.AmazonS3Config;
import com.zjk.storage.core.provider.local.LocalConfig;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;



@Slf4j
@ConditionalOnMissingBean(FileStorageProperties.class)
@ConfigurationProperties(prefix = "toolkit.file-storage")
@Data
public class FileStorageProperties {

    /**
     * 默认存储平台
     */
    @Setter
    @Getter
    private String defaultPlatform;
    /**
     * 缩略图后缀，例如【.min.jpg】【.png】
     */
    @Setter
    @Getter
    private String thumbnailSuffix = ".min.jpg";
    /**
     * 本地存储
     */
    private LocalConfig local;
    /**
     * AWS S3
     */
    private AmazonS3Config amazonS3;

}
